package com.ay.weixin.fdc.admin.superadmin.domain;

public class SuperAdmin {
	
	private long id;
	
	private String name;
	
	private String password;
	
	private String role;
	
	public enum AdminRole{
		SUPER("超级管理员"),
		NORMAL("普通管理员");
		private String desc;
		private AdminRole(String desc){
			this.desc=desc;
		}
		public String desc(){
			return desc;
		}
	}

	
	/**
	 * 
	 * 都是必填字段
	 * 
	 * */
	public static SuperAdmin newUser(String name,String password){
		SuperAdmin adm=new SuperAdmin();
		adm.name=name;
		adm.password=password;
		return adm;
	}
	
	
	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}


	public String getRole() {
		return role;
	}


	public void setRole(String role) {
		this.role = role;
	}

	
	
}
